// dlg.txt

//		mark_quest_dest(zone,x,y,layer,quest);
//		cancel_out_fight(0,short kill_enc);
//		make_outdoor_enc(short x,short y,short which_enc);
//		set_out_fight_field(short which_field);
// 				which_field is 0-20

begintalkscript;

variables;

short this_sec = 3;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "You have reached the highest point in the High Litha. This is the end of the settled lands of the Rokaj. Above you, you can see only the Aram Peaks. It is a barren glacier. Only the hardiest explorers could survive ascending it.";
	text2 = "Yet, the Ro do come up here. The Pilgrimage Road ends at a stone fortress. On the other side is a valley leading up to the peak. There are a lot of tracks in the snow. A lot of Ro warriors have arrived here ahead of you.";
	text3 = "It is very strange. In this time of chaos, many of the Ro have taken a hard journey up into these barren heights. Perhaps you can learn more in the fort ahead.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "The old Lithan warriors have been defeated. They decided that they had to send a message. You don't know what message they send or who it was aimed at. You only know that they thought it was worth their lives.";
	text2 = "You search them, looking for some sign of who they were or what they intended to achieve with this meaningless display. You find nothing of use.";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "With all of the mysterious intrigue happening up in the mountains, it is kind of refreshing to run into a group of simple, ordinary brigands.";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "There are several groups of Ro warriors camped on the icy sheets outside this mountain fortress. When you get close, they hastily pack up their equipment and weapons and head into the fortress.";
	code =
		cancel_out_fight(1,1);
	break;
	
begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There is a lone ghost floating over the snow. In most places, a cause for terror. In the High Litha, a normal symptom of political unrest. When the spirit gets closer, you can see that it is a young woman. Her spectral dress trails along in the snow, leaving no tracks.";
	text2 = "When she gets close to you, she changes course to intercept you. You draw your weapon, but she doesn't seem to notice. She hovers about thirty feet from you and favors you with a tranquil smile.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Approach the shade.";
	text1 = "She doesn't move to attack. She waits for you to get close. You can now see that her hair is very red.";
	text2 = "When she speaks, her voice is calm and musical, though you have to struggle to hear it. _You have an outsider's blood, but I sense you have a strong tie to this land. I welcome you. I hope you come to these mountains in peace._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Leave.";
	text1 = "You turn and leave. She floats off in a different direction.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Who were you?_";
	text1 = "_I was one who tried to bring peace and comfort to the hungry and scared. My brother and I traveled all throughout the Ro. We are a harsh people, but we are also kind and just._";
	text2 = "_I am lost. My brother still lives. He wanders the inns of our land, looking for those who need comfort._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about the mountains._";
	text1 = "_These are the peaks of the spirits. They are where the spirit of our people lives._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_I need some information._";
	text1 = "_I am not a teacher. I am not an advisor. I only watch and ... and ... I don't know. I am an aimless spirit._";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = gf(103,16) > 0;
	question = "_Um, your name isn't Soraene, is it?_";
	text1 = "She is shocked. Her airy form bounces back as if struck with a wind. _It ... It was. That was my name in life. Who told you of it?_";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Leave.";
	text1 = "You turn and leave. She floats off in a different direction.";
	action = END_TALK;

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_Your brother._";
	text1 = "She laughs. _You have met Regi? I am so pleased. I hope he is well. I'm sure he is. His purpose will sustain him in this hard time._";
	text2 = "_Since you know of me, I know that he trusts you. I have a message. I have been waiting for one I trust enough give it to. I sense that this is you._";

begintalknode;
	state = 13;
	nextstate = 14;
	condition = 1;
	question = "_What is your message?_";
	text1 = "_The war is coming. I feel it in the air, and it hurts me. Warriors come from all over, and they are angry. Nobody tries to calm them. Nobody will listen to poor Soraene._";

begintalknode;
	state = 14;
	nextstate = -1;
	condition = 1;
	question = "_Why is war coming?_";
	text1 = "_Because of Haven. They think they own the Rokaj, but they ignore it. All empires must lose the Ro in time. Some think this is the right time. They are wrong._";

begintalknode;
	state = 14;
	nextstate = -1;
	condition = 1;
	question = "_Why does it matter to you?_";
	text1 = "_I love the Rokaj. I would not watch it suffer until a better life can be won._";
	
begintalknode;
	state = 14;
	nextstate = 15;
	condition = 1;
	question = "_What do you want from me?_";
	text1 = "_You ... have influence. Power. I can sense it. The Rokaj is heading toward war, and it is a war they must lose. You must prevent it._";

begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_Any messages for your brother?_";
	text1 = "_Only that I am proud, and I want him to live a life._";

begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_How can I prevent it?_";
	text1 = "_The warriors of the Ro are gathering. I don't where or when. I just know that someone must go there and convince them to choose peace._";

begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_And if war can't be prevented?_";
	text1 = "_Then try to make it kill as few as possible._";

begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_Do you want the Rokaj to be Haven's vassal?_";
	text1 = "_Of course not. The Rokaj is always free in our hearts, but I want to see us free in the living world too. If I see that, I think I can go to my rest._";

begintalknode;
	state = 15;
	nextstate = 16;
	condition = 1;
	question = "_I know what I want to do._";
	text1 = "_Yes, what does your strong spirit desire?_";


begintalknode;
	state = 16;
	nextstate = -1;
	condition = 1;
	question = "_I plan to make as few decisions as possible. It's not my business._";
	text1 = "_Oh. I am sad to hear it. You are one who can reach out and grab destiny. I hope you are not a coward. I don't think the blood of our people, the blood in your veins, will allow you._";
	text2 = "You try to respond, but her eyes are closed. Slowly, she fades away. You are alone on the glacier once again.";
	action = END_TALK;
	code =
		cancel_out_fight(1,1);
		ro_faction(-2);
	break;
	
begintalknode;
	state = 16;
	nextstate = -1;
	condition = 1;
	question = "_The Rokaj has been insolent. It needs to be punished._";
	text1 = "_Then my brother's faith in you was misplaced. Yet, I think you will change your mind. I don't think the blood of our people, the blood in your veins, will allow you to savage us._";
	text2 = "You try to respond, but her eyes are closed. Slowly, she fades away. You are alone on the glacier once again.";
	action = END_TALK;
	code =
		cancel_out_fight(1,1);
		ro_faction(-2);
	break;

begintalknode;
	state = 16;
	nextstate = -1;
	condition = 1;
	question = "_I will do what I can to spare this land._";
	text1 = "She nods. _The blood in your veins, the blood of your father, speaks. I thank you. I wish you good fortune on the highest peaks._";
	text2 = "You try to respond, but her eyes are closed. Slowly, she fades away. You are alone on the glacier once again.";
	action = END_TALK;
	code =
		cancel_out_fight(1,1);
		ro_faction(1);
	break;

begintalknode;
	state = 16;
	nextstate = -1;
	condition = 1;
	question = "_I want the Rokaj to be free._";
	text1 = "She shakes her head. _I don't think we can dream of that. The forces that control us are too strong and too determined. Yet, I think you can bring the day of our freedom closer. The blood in your veins, the blood of your father, will speak. For that, I thank you._";
	text2 = "You try to respond, but her eyes are closed. Slowly, she fades away. You are alone on the glacier once again.";
	action = END_TALK;
	code =
		cancel_out_fight(1,1);
		ro_faction(1);
	break;
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "There is a band of warriors standing at this crossroads. They stand at attention in two rows. When you get close, you see that they are tall, thin High Lithans. They are all old, and their weapons are drawn. They wait here as the snow covers them.";
	text2 = "When they see who you are, they move. They walk forward and block your path.";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Walk around them.";
	text1 = "You try to move around them. Then they start to run. For old warriors, moving over ice, they are extremely fast and nimble. However you try to move, they block your path.";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Turn back.";
	text1 = "You turn and quickly move away. For a moment, you think you get away. Then you see shadowy figures, in the snow, running past you. Soon, you find the old warriors blocking your way again.";

begintalknode;
	state = 40;
	nextstate = 41;
	condition = 1;
	question = "_Let me by._";
	text1 = "One of the old warriors steps forward. She has a wicked, barbed spear and long, stringy white hair. She says, _You must turn back, Haven. Go south. Go home. You will not go to the Icegate._";

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_You are a vassal of Haven. You have no lands that are private from me._";
	text1 = "She raises her weapon. _We say it is not so._";

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_What will happen in the Icegate?_";
	text1 = "_Nothing good. You have come too far, you can't be allowed to pass without our demonstration._";

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_I am here on the orders of my queen._";
	text1 = "_The queen who has neglected us? She has lost her right to rule us._";

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_Fine. I'll leave._ Lie.";
	text1 = "You stare at them. They stare at you. Their expressions don't change. _No. Now that you have come this far, the end is inevitable. We will not weaken. We must send the message we need to. We must be an example for the whole Rokaj._";
	text2 = "Then they attack you.";
	action = END_TALK;
	code =
		ro_faction(-1);
	break;
	
begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_I will go where I will._ Push past them.";
	text1 = "You step up to the old, wiry warrior. You give her a shove. She steps back. All of the High Lithans point their weapons at you.";
	text2 = "She dusts herself off and closes her eyes for a moment. Then she says, _It is inevitable. I am ready. We will not weaken. We must send the message we need to. We must be an example for the whole Rokaj._";
	text3 = "Then they attack you.";
	action = END_TALK;
	code =
		ro_faction(1);
	break;

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_You will pay for you challenging me!_ Attack.";
	text1 = "You draw your weapon and charge the old Lithans. The old woman shouts, _This would happen no matter what. We send a message. We die as a good example to the young!_ Then they face their fate.";
	action = END_TALK;
	code =
		violence(2);
	break;


	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				